package com.example.shardingdemo.mapper;

import com.example.shardingdemo.entity.Order;
import com.example.shardingdemo.entity.User;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {

    Order getOrder(long id, String tableSuffix);

    Long addOrder(Order order);

    List<Order> queryAllOrder(String tableSuffix);
    List<Order> getOrderList(Order order);


    Page<Order> queryOrderByPage(String tableSuffix);
}
